var connector = require("../../../src/runtime/jaba");

(function($service$){
var $input$ = {};

/* Init code */

/* Remote code */
var $script$ = 'for product in root.Products do (g0:product.ProductName; g1:product.Category.CategoryName; g2:product.UnitPrice) end; ';
var $batch$ = $service$.execute($script$, $input$, function($result$) {

/* Local code */
console.log("Product Info:");
$result$.getIteration("product").forEach(function(product){
console.log((((((product.getString("g0") + " is : the category ") + product.getString("g1")) + " and costs $") + product.getString("g2")) + " per unit."));
});

});
})(connector);